function GetACL_Log() {

	var myData = [
			['1', "2011-11-01 12:00:00", "策略1", "防火墙策略", "192.168.0.1",'1124','192.168.2.1','2654','丢弃'],
			['2', "2011-11-01 12:00:00", "策略1", "防火墙策略", "192.168.0.1",'1124','192.168.2.1','2654','丢弃'],
			['3', "2011-11-01 12:00:00", "策略1", "防火墙策略", "192.168.0.1",'1124','192.168.2.1','2654','丢弃'],
			['4', "2011-11-01 12:00:00", "策略1", "防火墙策略", "192.168.0.1",'1124','192.168.2.1','2654','丢弃'],
			['5', "2011-11-01 12:00:00", "策略1", "防火墙策略", "192.168.0.1",'1124','192.168.2.1','2654','丢弃']

	];


	var store = new Ext.data.ArrayStore({
				fields : [{
							name : 'id'
						}, {
							name : 'time'
						}, {
							name : 'name'
						}, {
							name : 'type'
						}, {
							name : 'srcip'
						}, {
							name : 'srcport'
						}, {
							name : 'destip'
						}, {
							name : 'destport'
						}, {
							name : 'action'
						}]
			});
			
	store.loadData(myData);
	var nowpage = new Ext.Toolbar.TextItem('1');
	var countpage = new Ext.Toolbar.TextItem('共1页');
	var now_page = 0;
	var count_page = 0;
	var sm = new Ext.grid.CheckboxSelectionModel();
	var grid = new Ext.grid.GridPanel({
				store : store,
				columns : [sm, {
							id : 'id',
							header : 'id',
							width : 10,
							sortable : true,
							dataIndex : 'id',
							hidden : true
						}, {
							header : '时间',
							width : 150,
							sortable : true,
							dataIndex : 'time'
						}, {
							header : '策略名',
							width : 150,
							sortable : true,
							dataIndex : 'name'
						}, {
							header : '策略类型',
							width : 150,
							sortable : true,
							dataIndex : 'type'
						}, {
							header : '源IP',
							width : 70,
							sortable : true,
							dataIndex : 'srcip'
						}, {
							header : '源端口',
							width : 70,
							sortable : true,
							dataIndex : 'srcport'
						}, {
							header : '目的IP',
							width : 70,
							sortable : true,
							dataIndex : 'destip'
						}, {
							header : '目的端口',
							width : 70,
							sortable : true,
							dataIndex : 'destport'
						}, {
							header : '动作',
							width : 70,
							sortable : true,
							dataIndex : 'action'
						}],
				sm : sm,
				tbar : [
				
						{
							text : '设置',
							tooltip : '设置',
							iconCls : 'set',
							handler : function() {							
								SetACLLog();
							}
						},'-',{
							text : '删除',
							tooltip : '删除',
							iconCls : 'delete',
							ref : '../removeBtn',
							disabled : true,
							handler : function() {
								var s = grid.getSelectionModel().getSelections();
								for (var i = 0; r = s[i]; i++) {
									store.remove(r);
								}
							}
						}, '-', {
							text : '查找',
							tooltip : '查找',
							iconCls : 'search',
							handler : function() {							
								SyslogSearchWindows(searchReturn);
							}
						}],
				bbar : [{
					tooltip : '首页',
					handler : function() {
						reflashgriad(0);
					},
					iconCls : 'frist'
				}, {

					tooltip : '上一页',
					handler : function() {
						reflashgriad(now_page - 1);
					},
					iconCls : 'perv'
				}, nowpage, {

					tooltip : '下一页',
					handler : function() {
						reflashgriad(now_page + 1);
					},
					iconCls : 'next'
				}, {

					tooltip : '最后一页',
					handler : function() {
						reflashgriad(Math.ceil(count_page / 20) - 1);
					},
					iconCls : 'last'
				}, {
					xtype : "tbfill"
				}, countpage],
				stripeRows : true,
				autoExpandColumn : 'id',
				stateful : true,
				stateId : 'aclloggrid'
			});
	grid.getSelectionModel().on('selectionchange', function(sm) {
				grid.removeBtn.setDisabled(sm.getCount() < 1);
			});

	return grid;
}
function SetACLLog(){
		var Clear = new Ext.form.FormPanel({
				frame : true,
				layout : 'form',
				region : 'center',
				bodyStyle : 'padding:10px;',
				items : [
								new Ext.form.CompositeField({ 
										    fieldLabel: '日志获取频率', 
										    items: [ 
										    		
										        new Ext.form.TextField({ 
													    name: 'my_field', 
													    flex: 1 
													  }),{
															xtype: 'label',
															style:'padding-top: 5px; ', 
															text:'秒'
														} 
										         
										    ] 
									}), {
									xtype: 'checkbox',
									name: 'status',
									id  : 'status',
									fieldLabel: '获取后自动删除',
									anchor: '100%'
						}]

			});

	var clearWindows = new Ext.Window({
				layout : 'border',
				width : 500,
				height : 230,
				title : "设置",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'sys_log',
				items : [Clear],
				plain : true
			});

	clearWindows.addButton({
				text : "确定",
				handler : function() {
					
					clearWindows.close();
				}
			});
	clearWindows.addButton({
				text : '取 消',
				handler : function() {
					clearWindows.close();
				}
			});
	clearWindows.show();
}